#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Copyright © 启明星辰 版权所有
# @Time    : 2023/6/16 15:15
# @Author  : 胡浩浩
# @Email   : hu_haohao@venusgroup.com.cn
# @File    : report_server.py.py
# @IDE     : PyCharm
# @description :
import uvicorn
from fastapi import FastAPI
from starlette.routing import Mount
from starlette.staticfiles import StaticFiles

app = FastAPI(
    routes=[
        Mount('/reports', StaticFiles(directory='./allures', html=True), 'report'),
    ]
)


if __name__ == '__main__':
    uvicorn.run(app, port=8055,host="0.0.0.0")